package com.yd.basemodule.base.bean

import com.yd.basemodule.base.IBaseResponse

/**
 * <pre>
 *     author : yh
 *     e-mail : xxx@xx
 *     time   : 2023/12/22
 *     desc   :
 * </pre>
 */
data class BaseResult<T>(val msg:String,
val code:Int,val  data:T ,val fpr:String): IBaseResponse<T> {
    override fun code(): Int {
        return code
    }

    override fun msg(): String {
        return  msg
    }

    override fun data(): T {
        return data
    }

    override fun isSuccess(): Boolean {
        return code==0||code==200
    }
}